package com.matt.service;

import com.matt.domain.LiveRoom;
import com.matt.domain.VideoCassetteRecorder;

import java.util.List;
import java.util.Map;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/12/8
 * *******************************
 */
public interface VideoCassetteRecorderService {

    List<VideoCassetteRecorder> findByArea(String areaId);

    boolean delete(String areaId, String vcrId);

    VideoCassetteRecorder add(String areaId, String name, String serialNumber, Integer liveWay);

    VideoCassetteRecorder modify(String id, String name, String serialNumber, Integer liveWay, String areaId);

    void refreshAll();

    Object refreshVCRSingle(String areaId,String deviceSerial);

    List<LiveRoom> getCameraByAreaIdAndSerial(String areaId,String deviceSerial);

    Map openLive(String areaId,String deviceSerial, String channelNo);

    Map closeLive(String areaId,String deviceSerial, String channelNo);

    Object refreshAllArea();
}
